﻿<?php
require $this->__RAD__ . 'component/global/head.php';
?>
<body>
<?php
require $this->__RAD__ . 'component/global/header.php';
?>
<div class="products-detail content">
    <div class="home-product">
        <div class="product-swiper-box">
            <div class="swiper-container product-swiper w1200">
                <div class="swiper-wrapper">
                    <?php
                    if ($this->product) :
                        foreach ($this->product as $val) :
                            ?>
                            <div onclick="location.href='/en/products/index/<?= $val->category_id ?>'" class="swiper-slide <?= $this->categoryId == $val->category_id ? 'active' : '' ?>">
                                <div class="img-box">
                                    <img src="<?= $this->__CDN__.'pics/l/'.$val->landscape ?>" alt="">
                                </div>
                                <p><?= $val->category_name ?></p>
                            </div>
                            <?php
                        endforeach;
                    endif;
                    ?>
                </div>
                <div class="swiper-button-prev"></div>
                <div class="swiper-button-next"></div>
            </div>
        </div>
        <!--产品详情-->
        <div class="product-body clearboth w1200">
            <div class="detail-nav"><a href="/en/">首页</a>&gt;<a href="/en/products/index">产品</a>&gt;<a href="javascript:;"> <?= $this->title ?></a></div>
            <?php
            if ($this->src) :
            ?>
            <div class="left fl">
                <div class="img-show">
                    <img src="<?= $this->__CDN__.'pics/l/'.$this->src[0]->src ?>" alt="">
                    <div class="icon-icon"></div>
                </div>
                <div class="swiper-container swiper-detail">
                     <div class="swiper-wrapper">
                         <?php
                         if ($this->src) :
                         foreach ($this->src as $val) :
                         ?>
                            <div class="swiper-slide">
                                <img src="<?= $this->__CDN__.'pics/l/'.$val->src ?>" alt="">
                            </div>
                         <?php
                         endforeach;
                         endif;
                         ?>
                        </div>
                    <!-- Add Arrows -->
                    <div class="swiper-button-next"></div>
                    <div class="swiper-button-prev "></div>
                </div>
            </div>
            <?php
            endif;
            ?>
            <div class="right fl">
                <div class="clearboth top">
                    <p class="fl"><?= App\Tools\Html::getLenStr($this->title, 20) ?></p>
                    <div class="friendly-link fr">
                        <div class="jiathis_style_32x32">
                            <i class="fl">分享:</i>
                            <a class="jiathis_button_fb"></a>
                            <a class="jiathis_button_twitter"></a>
                            <a class="jiathis_button_googleplus"></a>
                            <a class="jiathis_button_linkedin"></a>
                            <a class="jiathis_button_tumblr"></a>
                        </div>
                    </div>
                </div>
                <div class="data">
                    <?php
                    if ($this->Part) :
                        $part = explode('#@#', $this->Part);
                    foreach ($part as $val) :
                    ?>
                    <p><?= $val ?></p>
                    <?php
                    endforeach;
                    endif;
                    ?>
                </div>
            </div>
        </div>
        <!--产品参数-->
        <div class="info">
            <div class="tab-list">
                <p class="w1200 clearboth">
                    <a href="javascript:;" class="active"><?= $this->attachment_name ?></a>
                    <a href="javascript:;"> <?= $this->attachment2_name ?></a>
                    <a href="javascript:;"><?= $this->attachment3_name ?></a>
                    <a href="javascript:;"><?= $this->attachment4_name ?></a>
                    <a href="javascript:;"><?= $this->attachment5_name ?></a>
                </p>
            </div>
            <div class="data-box">
                <div class="data-detail active w1200">
                    <?= $this->attachment ?>
                </div>
                <div class="data-detail w1200">
                    <?= $this->attachment2 ?>
                </div>
                <div class="data-detail w1200">
                    <?= $this->attachment3 ?>
                </div>
                <div class="data-detail w1200">
                    <?= $this->attachment4 ?>
                </div>
                <div class="data-detail w1200">
                    <?= $this->attachment5 ?>
                </div>
            </div>
            <div class="w1200">
                <div class="btn-box btn-box-2 clearboth">
                    <?= $this->getPrevNext1 ?>
                    <a class="fr" href="/en/products/index/<?= $this->categoryId ?>">返回</a>
                </div>
            </div>
        </div>
    </div>

</div>

<div id="img-warper">
    <div class="mask2"></div>
    <div class="close">
        <img src="/assets/static/images/close2.png" alt="" > <span>关闭</span>
    </div>
    <img src="" alt="" id="img-big">
</div>
<?php
require $this->__RAD__ . 'component/global/footer.php';
?>
<script>
    products.index()
</script>
</body>
</html>